package com.jiai.cloud.sys.service.impl;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.jiai.cloud.base.page.CustomPage;
import com.jiai.cloud.entity.TGoods;
import com.jiai.cloud.sys.service.ITGoodsService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.jiai.cloud.sys.mapper.TGoodsMapper;
import java.util.Map;

/**
 * <p>
 * 商品 服务实现类
 * </p>
 *
 * @author 佳爱科技
 * @since 2017-05-24
 */
@Service
public class TGoodsServiceImpl extends ServiceImpl<TGoodsMapper, TGoods> implements ITGoodsService {


    @Override
        public CustomPage<Map<String,Object>> findGoodsView(Page page,@Param("ew") Wrapper wrapper) {
        page.setRecords(baseMapper.findGoodsView(page,wrapper));
        return new CustomPage<>(page);
    }

    @Override
    public TGoods findGoodsFullyById(Integer goodsId) {
        TGoods tGoods = baseMapper.findGoodsFullyById(goodsId);
        return tGoods;
    }
}




